using System;
using System.Collections.Generic;
using System.ByteBuffer;
using tools;

namespace Zjh
{
    /// <summary>
    /// generate by msg tool
    /// 请求下注(下注筹码和上家一样即跟注,比上家多即加注)
    /// </summary>
	public class ReqBetMsg : ReqMessage
	{
		//积分
		public int cedit;

        public ReqBetMsg() { }

        public ReqBetMsg(int cedit)
        {
            this.cedit = cedit;
        }

        
		public void write(object obj)
		{
            ByteBuffer b = obj as ByteBuffer;
			b.PushInt(cedit);
			
		}

	    public void read(object obj)
		{
            MyConverter b = obj as MyConverter;
			cedit = b.toInt32();
			
		}

		public int Id
		{
            get { return 519109; }
		}

        public String Desc
        {
            get { return "请求下注(下注筹码和上家一样即跟注,比上家多即加注)"; }
        }
	}
}